//
//  RMMPayOrderTableViewCell.m
//  Romomo
//
//  Created by puman on 16/10/17.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMPayOrderTableViewCell.h"

@implementation RMMPayOrderTableViewCell
{
    UIImageView *_imageV;
    UILabel *_titleLabel;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _imageV = [[UIImageView alloc] initWithFrame:CGRectMake(15, kRow, 40, 40)];
        [self.contentView addSubview:_imageV];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(_imageV.right + 15, 0, 150, 60)];
        _titleLabel.textColor = COLORFROMCODE(0x4A4A4A, 1);
        _titleLabel.font = kBFont(16);
        [self.contentView addSubview:_titleLabel];
        
        _selcetBut = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _selcetBut.frame = CGRectMake(kScreenWideth - kHalf, 0, kHalf, kHalf + kRow);
        [_selcetBut setImage:[UIImage imageNamed:@"可选@3x"] forState:(UIControlStateNormal)];
        [self.contentView addSubview:_selcetBut];
    }
    return self;
}
- (void)setImageName:(NSString *)imageName{
    _imageV.image = [UIImage imageNamed:imageName];
}
- (void)setTitleName:(NSString *)titleName{
    _titleLabel.text = titleName;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
